import {AtSearchBar} from "taro-ui";
import {View} from "@tarojs/components";
import {Component} from "react";

class header extends Component{
  constructor () {
    super(...arguments)
    this.state = {
      value: ''
    }
  }
  onChange (value) {
    this.setState({
      value: value
    })
  }
  render() {
    return(
      <View className='header'>
        <AtSearchBar value={this.state.value} onChange={this.onChange.bind(this)} actionName='搜一下' placeholder='搜索国医堂'></AtSearchBar>
      </View>
    )
  }
}
export default header
